using System;
namespace Net35.Xrm.Sdk.Client
{
	internal static class PolicyHelper
	{
		internal static string GetPolicyValue(AuthenticationPolicy xrmPolicy, string elementName, string defaultValue)
		{
			string result;
			if (xrmPolicy != null && xrmPolicy.PolicyElements.TryGetValue(elementName, out result))
			{
				return result;
			}
			return defaultValue;
		}
	}
}
